//
//  TableHeaderView.m
//  MyItem
//
//  Created by admin on 15/12/24.
//  Copyright © 2015年 admin. All rights reserved.
//

#import "TableHeaderView.h"

@implementation TableHeaderView
- (void)awakeFromNib{
    [super awakeFromNib];
    self.frame = CGRectMake(0, 0, HScreenWidth, 130);
    [self _CreateSubview];
}
#pragma mark 初始化个人中心HeaderView
- (void)_CreateSubview{
    
    _HeaderBackgroundView.image = [UIImage imageNamed:@"myjd_defalut_background@2x"];
    [_MyHeaderView setBackgroundImage:[UIImage imageNamed:@"unlogin_head_n@2x"]forState: UIControlStateNormal];
    [_MyHeaderView setBackgroundImage: [UIImage imageNamed:@"unlogin_head_h@2x"] forState:UIControlStateHighlighted];
    //头视图底部状态栏（）
    NSArray *array = @[@"关注的商品",@"关注的店铺",@"浏览记录"];
    CGFloat buttonWidth = (HScreenWidth -3)/3;
    for (int i =0 ; i <3; i++) {
        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
        button.frame = CGRectMake(buttonWidth*i+1*i, 105, buttonWidth, 25);
        button.backgroundColor = [UIColor blackColor];
        button.alpha = 0.5;
        [button setTitle:array[i] forState:UIControlStateNormal];
        [self addSubview:button];
    }
}
- (IBAction)HeaderViewButton:(UIButton *)sender {
}
@end
